$(document).ready(function(){
    /*var language = "en_US";*/
	
	var language = "zh_CN";
    //URL获取失败从cookie读取
    var start = document.cookie.indexOf("lang" + "=");
    if (start != -1) {
        start = start + "lang".length + 1;
        var end = document.cookie.indexOf(";", start);
        if (end == -1) end = document.cookie.length;
        
        if(unescape(document.cookie.substring(start, end))){
       language = unescape(document.cookie.substring(start, end));
        }
    }
	
    console.info("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!!!!!~~~~~~~~~~~~~language:");
	console.info(language);
	
	   var script = document.createElement("script");
	   script.type = "text/javascript";
	   script.src = "common/js/book/bookFrontend_"+language+".js";
	   document.getElementsByTagName("head")[0].appendChild(script);
	   console.info("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!!!!!!!~~~~~~~~~~~~~script.src:");
	   console.info(script.src);
});